import request from "@/api/request.js";
//弃用
// export const getClassAllDateService = (requestBody, classId) => {
//   return request.post("/api-self/inspection/statisticsClass", requestBody, { params: { classId: classId } });
// };

// export const getAllService = requestBody => {
//   return request.post("/api-self/inspection/statisticsAll", requestBody);
// };

export const getAllUnitDataService = requestBody => {
  return request.post("/api-self/inspection/statisticAllUnit", requestBody);
};

export const getUnitDataService = (requestBody, unitId) => {
  return request.post("/api-self/inspection/statisticUnit", requestBody, { params: { unitId: unitId } });
};

export const getClassMemberDataService = (requestBody, classId) => {
  return request.post("/api-self/inspection/statisticAllUnitClassMember", requestBody, { params: { classId: classId } });
};
